package com.lagou;

import com.lagou.domain.CDPlayer;
import com.lagou.domain.LiangLiang;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = LiangLiang.class)
public class MyTest {
    @Autowired
    private CDPlayer cdPlayer;
    @Autowired
    private LiangLiang liangLiang;
    @Test
    public void test(){
        cdPlayer.play(liangLiang);
    }
}
